﻿using System.Reflection;

namespace IInject.Resolution
{
	public class ConstructorDependency : Dependency<ConstructorInfo, TypeDependency>
	{
		public ConstructorDependency(ConstructorInfo constructor) : base(DependencyType.Constructor)
		{
			Dependent = constructor;
		}

		public ParameterInfo[] GetParameters()
		{
			return Dependent.GetParameters();
		}
	}
}
